const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  // 添加配置以忽略 ResizeObserver 循环错误
  configureWebpack: {
    devServer: {
      client: {
        overlay: false
      }
    }
  },
  // 添加开发服务器代理配置
  devServer: {
    proxy: {
      '/api': {
        target: 'https://smartsound.top',
        changeOrigin: true,
        secure: false,
        headers: {
          'Access-Control-Allow-Origin': '*'
        }
      }
    }
  }
})
